<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index()
    {
        $this->assign('list',cate_index(0));
        $moder = D('Article');
        $artile = $moder->where(array('iselite'=>1))->field('id,title,img,content')->select();
        // print_r($artile);die();
        $this->assign('artile_list',$artile);
        $this->display();
    }
    
}